import request from '@/utils/http'

// 运动信息
// 获取运动记录
export function getSportRecord(data: any) {
  return request.get({
    url: `/api/sp/pat/daily/task/getSportRecord`,
    data
  })
}

// 各类运动
export function getSportsInfo(data: any) {
  return request.get({
    url: `/api/sp/pat/daily/task/getSportInfo`,
    data
  })
}

//保存运动记录
export function saveSportRecord(data: any) {
  return request.post({
    url: `/api/sp/pat/daily/task/saveSportRecord`,
    data
  })
}

// 计算能量
export function calculateEnergy(data: any) {
  return request.post({
    url: `/api/sp/pat/daily/task/calculateEnergy`,
    data
  })
}
